import request from 'network/index'

export function getUserInfo(userId) {
  return request({
    url: '/user',
    params:{
      userId
    }
  })
}

//修改基本信息
export function updataBaseInfo(data){
  return request({
    method:'put',
    url:'/user',
    data
  })
}

//修改密码
export function updataPassword(data){
  return request({
    method:"put",
    url:"/user/password",
    data
  })
}

//修改头像
export function updataHeaderImg(data){
  return request({
    method:"put",
    url:"/user/header",
    data
  })
}

//注销账号
export function Logout(data){
  return request({
    method:"delete",
    url:'/user/logout',
    data
  })
}